<extend name="Base/common"/>
<block name="style">
    <link href="__CSS__/jxgl.css" type="text/css" rel="stylesheet">
</block>
<block name="header">
    <include file="Public/_nav"/>
</block>
<block name="body">

      <!--   <include file="Public/_hot_sell"/> -->
        <!-- 左侧菜start -->
        <div class="col-xs-2">
             <div class="common_block_border">                
                <div class="content ">
                <include file="Public/sidebar"  />
                </div>
            </div>
        </div>
        <!-- 左侧菜end -->

        <!-- 右侧内容开始 -->
        <div class="col-xs-10">
         <div class="common_block_border">
            <ul class="nav nav-tabs">
                <li><a href="{:U('Dushujie/updushujie')}">节目上报</a></li>
                <li><a href="{:U('Dushujie/viewDushujie')}">浏览节目单</a></li>
                <li class="active"><a href="{:U('Dushujie/sortDushujie','id='.$vo['id'])}" >节目排序</a><li>
       </ul>

       <div class="right_box">
       <!-- 标题栏 -->
    	<legend><span style="color:#CC4444">读书节汇总 </span> </legend>      
        <!-- 查询表单start -->
          
                <form method='post' id="form" name="form"  action="__SELF__" class="form-horizontal form-condensed">

                   <div class="form-group">

                   <label class="col-md-2 text-right" for="year">选择年度节目</label>
                     <div class="col-md-2">
                      <select name="year" id="year" class="form-control" onChange="this.form.submit()">
                      <php>$endyear=date('Y')+1;</php>
                          <for start="2015" end="$endyear">
                            <option value="{$i}" <eq name="ayear" value= "$i" > selected </eq> >{$i}年</option>
                          </for>                   
                      </select>
                      </div>
             
                   <div class="col-md-1">
                   <button type="submit" class="btn btn-primary">&nbsp;查询&nbsp;</button></div>
                   <div class="col-md-2">
<!--                   <if condition="check_auth('Admin/Index/index')">
                  <a href="{:U('dushujie/excel_2')}" class="btn btn-danger ">&nbsp;导出各年度汇总&nbsp;</a></div>
                  </if> -->
                  <a href="{:U('Dushujie/exportDushujie',array('year'=>$ayear))}" class="btn btn-success ">&nbsp;导出&nbsp;Excel汇总表&nbsp;</a></div>
              </form> 
 
                <!-- 查询表单end -->

      
  
  <!-- 数据列表 -->
        <div class="data-table">
         <table class="table  table-striped table-bordered">
             <thead>
            <tr class="info">                
                <th class="">序号</th>                                     
                <th class="">班级</th>
                <th class="">班主任</th>
                <th class="">节目名称</th>
                <th class="">节目时长</th>
                <th class="">表演形式</th>              
                <th class="">解说词</th>
                <th class="">更新时间</th>                
                <th class="">操  作</th>
            </tr>
            </thead>
            <tbody>
            <notempty name="list">
                <volist name="list" id="vo">
                <tr>
                    <td>{$i} </td>
                    <td>{$vo.class}</td>
                    <td>{$vo.headteacher}</td>
                    <td>{$vo.title}</td>
                    <td>{$vo.show_time}</td>
                    <td>{$vo.xingshi}</td>
                    <td>{$vo.abstract|msubstr=0,20,'utf-8',true}</td>      
                    <td><span>{$vo.update_time|date='Y-m-d',###}</span></td>                        
                    <td>
                        <a data-remote="{:U('Dushujie/editDushujie','id='.$vo['id'])}" data-toggle="modal" data-icon="edit">编辑</a> | 
                        <a data-remote="{:U('Dushujie/upMusicfile','id='.$vo['id'])}" data-toggle="modal" data-icon="cloud-upload"
                        data-moveable="ture" >上传音乐</a> |                       
                        <a href="{:U('Dushujie/deleteDushujie?id='.$vo['id'])}" class="authorize">删除</a>
                        
                        </td>
                </tr>
                </volist>
                <else/>
                <td colspan="8" class="text-center"> aOh! 暂时还没有内容! </td>
                </notempty>
            </tbody>
            </table>       
        </div>
        <!-- 表格数据结束 -->
      </div>  
     </div>  
    </div>          

</block>

